using SqlSugar;
using System;
using B.S.XZYData.Domain.BaseEntities;

namespace B.S.XZYData.Domain.ZSHH
{
    /// <summary>
    /// 工序表
    /// </summary>
    [SugarTable("process")]
    public class Process : BaseModel
    {

        /// <summary>
        /// 工序编号(唯一)
        /// </summary>
        [SugarColumn(Length = 50, IsNullable = false)]
        public string ProcessNumber { get; set; }

        /// <summary>
        /// 工艺外键
        /// </summary>

        [SugarColumn(IsNullable = false)]
        public int RoutdId {  get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = false)]
        public string ProcessName { get; set; }

        /// <summary>
        /// 报工权限(逗号分隔的角色)
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string ReportingPermissions { get; set; }

        /// <summary>
        /// 报工数配比
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int? ReportingRatio { get; set; } = 1;

        /// <summary>
        /// 不良品项列表(管道分隔的ID\描述)
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string DefectiveItemList { get; set; }

        /// <summary>
        /// 测试字段1
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = true)]
        public string TestField1 { get; set; }

        /// <summary>
        /// 测试字段2
        /// </summary>
        [SugarColumn(Length = 100, IsNullable = true)]
        public string TestField2 { get; set; }
    }
} 